// var tmp = {options:[]}
// tmp.options.push({number:0})
// tmp.options[0].number++
// var s =[]
// var i = 0
// s.push("dgag"+i+1)
var xlsx = require("node-xlsx")
var fs =require('fs')
// Or var xlsx = require('node-xlsx').default;
const n = ["a","b"]
var data = [[1, 2, 3], [true, false, null, 'sheetjs'], ['foo', 'bar', new Date('2014-02-19T14:30Z'), '0.3'], ['baz', null, 'qux']];
var buffer = xlsx.build([{name: "mySheetName", data: data}]);
var res=data[n,data]
console.log(res)
fs.writeFileSync('./message.xlsx',buffer);